package com.hmall.order.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.Map;

/**
 * 微信支付工具
 */
public interface WxAndZfbPayService {
    /**
     * 微信支付
     */
    //订单支付
    String wxPay(Integer type, Long orderId);

    /**
     * 支付宝支付
     */
    String zfbPay(Integer type, Long orderId, HttpServletResponse httpResponse);
    /**
     * 微信支付回调
     */

    /**
     * 支付宝支付回调
     */
    String payNotify(HttpServletRequest request);

    /**
     * 微信支付回调
     */
    Map<String, String> wxPayNotify(InputStream inputStream);
}
